package tech.eyao.hs60x.common;

import java.io.Serializable;

/**
 * 错误码
 * 
 * @author hejian
 * @date 2017年12月20日 下午1:49:43
 */
public class ReturnCode implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 6278279082254216278L;

	private final int			code;
	private final String		desc;

	public ReturnCode(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	public static final int			C_SUCCESS_CODE			= 0;
	public static final ReturnCode	SUCCESS_CODE			= new ReturnCode(C_SUCCESS_CODE, "SUCCESS");

	public int getCode() {
		return code;
	}
	public String getDesc() {
		return desc;
	}

}
